import { request } from "@/utils/axios";

// 轮播图
/**
 * 获取轮播图列表
 */
export function getCarouselList() {
  return request("/carousel/list", "get");
}

/**
 * 获取轮播图列表
 */
export function queryCarouselList(data) {
  return request("/carousel/query", "get", data);
}

/**
 * 删除轮播图
 */
export function removeCarousel(data) {
  return request("/carousel/remove", "delete", data);
}

/**
 * 添加轮播图
 */
export function addCarousel(data) {
  return request("/carousel/add", "post", data);
}

/**
 * 编辑轮播图回显
 */
export function editEchoCarousel(data) {
  return request("/carousel/echo", "get", data);
}

/**
 * 编辑轮播图
 */
export function editCarousel(data) {
  return request("/carousel/edit", "post", data);
}
